package ebj.common.protocol;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class ED2KUrlTest {
	public static void main(String[] args) {
		// URLDecode -> ed2k://|file|[智能Web算法].(玛若曼尼斯).阿稳等.扫描版(ED2000.COM).pdf|44122454|8036ddff329a202268cc95c84d67de44|h=uwka3x6p3hg44wczwnnevzvqavl2gv27|/
		String ed2kUrl = "ed2k://|file|[%E6%99%BA%E8%83%BDWeb%E7%AE%97%E6%B3%95].(%E7%8E%9B%E8%8B%A5%E6%9B%BC%E5%B0%BC%E6%96%AF).%E9%98%BF%E7%A8%B3%E7%AD%89.%E6%89%AB%E6%8F%8F%E7%89%88(ED2000.COM).pdf|44122454|8036ddff329a202268cc95c84d67de44|h=uwka3x6p3hg44wczwnnevzvqavl2gv27|/";
		
		try {
			System.out.println(URLDecoder.decode(ed2kUrl, "UTF-8"));
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
}
